# -*- coding: utf-8 -*-
from airflow.operators.dummy_operator import DummyOperator
from utils.operators.external_dag_sensor import ExternalDagSensor,ExternalDagSensorAsync


# ## 损益报表-日报表明细表
spmi_ods__ibk_increase_day_report = ExternalDagSensorAsync(
    task_id='spmi_ods__ibk_increase_day_report',
    external_dag_id='spmi',  # 需要等待的外部DAG id
    external_task_id='spmi_ods__ibk_increase_day_report',  # 需要等待的外部Task id，可以为None
    external_execution_date_time='{{ execution_date | cst_ds }} 02:50:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    mode='reschedule',
    timeout=600
)